package com.rk.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rk.admin.domain.Comarticle;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface ComarticleMapper extends BaseMapper<Comarticle> {

    /**
     * 添加文章
     * @param comarticle
     * @return
     */
    public int insertComarticle(Comarticle comarticle);

    /**
     * 通过id修改
     * @param comarticle
     * @return
     */
    public int updatebyid(Comarticle comarticle);


    /**
     * 通过id查找
     * @return
     */
    public Comarticle queryById(Integer id);
}
